package com.example.demo.web;

import com.example.demo.web.common.annotation.OperateLog;
import com.example.demo.web.common.interceptor.LogInterceptor;
import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;

/**
 * @author airhead
 */
@SolonMain
public class DemoWeb02App {
  public static void main(String[] args) {
    Solon.start(
        DemoWeb02App.class,
        args,
        app -> {
          app.context().beanInterceptorAdd(OperateLog.class, new LogInterceptor(), 1);
        });
  }
}
